package com.yayan.xh.dao;

import java.util.List;
import java.util.Map;

import com.yayan.xh.bean.ProductBean;

public interface IProductDao {
	
	/**
	 * 通过id查询产品信息
	 * @param map
	 * @return
	 * @throws Exception
	 */
	Map<String, Object> getProductByProId(Map<String, String> map) throws Exception;
	
	/**
	 * 保存产品信息
	 * @param map
	 * @return
	 * @throws Exception
	 */
	boolean saveProduct(Map<String, String> map) throws Exception;
	
	/**
	 * 后台通过赛事查询
	 * @param map
	 * @return
	 * @throws Exception
	 */
	List<ProductBean> getProductByMatchIdBack(Map<String, String> map) throws Exception;
}
